package com.ruoyi.system.domain;

import java.math.BigDecimal;
import java.util.Date;
import com.fasterxml.jackson.annotation.JsonFormat;
import org.apache.commons.lang3.builder.ToStringBuilder;
import org.apache.commons.lang3.builder.ToStringStyle;
import com.ruoyi.common.annotation.Excel;
import com.ruoyi.common.core.domain.BaseEntity;

/**
 * 组织扩展信息对象 sys_dept_extension
 * 
 * @author ruoyi
 * @date 2025-08-18
 */
public class SysDeptExtension extends BaseEntity
{
    private static final long serialVersionUID = 1L;

    /** 组织扩展ID */
    private Long deptExtId;

    /** 组织ID */
    @Excel(name = "组织ID")
    private Long deptId;

    /** 代理用户ID，用于支付功能 */
    @Excel(name = "代理用户ID，用于支付功能")
    private Long proxyUserId;

    /** 组织账户余额 */
    @Excel(name = "组织账户余额")
    private BigDecimal accountBalance;

    /** 冻结余额 */
    @Excel(name = "冻结余额")
    private BigDecimal frozenBalance;

    /** 支付密码 */
    @Excel(name = "支付密码")
    private String paymentPassword;

    /** 支付状态（0停用 1正常） */
    @Excel(name = "支付状态", readConverterExp = "0=停用,1=正常")
    private String paymentStatus;

    /** 信用额度 */
    @Excel(name = "信用额度")
    private BigDecimal creditLimit;

    /** 已使用信用额度 */
    @Excel(name = "已使用信用额度")
    private BigDecimal usedCredit;

    /** 结算周期（天） */
    @Excel(name = "结算周期", readConverterExp = "天=")
    private Long settlementCycle;

    /** 上次结算时间 */
    @JsonFormat(pattern = "yyyy-MM-dd")
    @Excel(name = "上次结算时间", width = 30, dateFormat = "yyyy-MM-dd")
    private Date lastSettlementTime;

    /** 状态（0正常 1停用） */
    @Excel(name = "状态", readConverterExp = "0=正常,1=停用")
    private String status;

    public void setDeptExtId(Long deptExtId) 
    {
        this.deptExtId = deptExtId;
    }

    public Long getDeptExtId() 
    {
        return deptExtId;
    }

    public void setDeptId(Long deptId) 
    {
        this.deptId = deptId;
    }

    public Long getDeptId() 
    {
        return deptId;
    }

    public void setProxyUserId(Long proxyUserId) 
    {
        this.proxyUserId = proxyUserId;
    }

    public Long getProxyUserId() 
    {
        return proxyUserId;
    }

    public void setAccountBalance(BigDecimal accountBalance) 
    {
        this.accountBalance = accountBalance;
    }

    public BigDecimal getAccountBalance() 
    {
        return accountBalance;
    }

    public void setFrozenBalance(BigDecimal frozenBalance) 
    {
        this.frozenBalance = frozenBalance;
    }

    public BigDecimal getFrozenBalance() 
    {
        return frozenBalance;
    }

    public void setPaymentPassword(String paymentPassword) 
    {
        this.paymentPassword = paymentPassword;
    }

    public String getPaymentPassword() 
    {
        return paymentPassword;
    }

    public void setPaymentStatus(String paymentStatus) 
    {
        this.paymentStatus = paymentStatus;
    }

    public String getPaymentStatus() 
    {
        return paymentStatus;
    }

    public void setCreditLimit(BigDecimal creditLimit) 
    {
        this.creditLimit = creditLimit;
    }

    public BigDecimal getCreditLimit() 
    {
        return creditLimit;
    }

    public void setUsedCredit(BigDecimal usedCredit) 
    {
        this.usedCredit = usedCredit;
    }

    public BigDecimal getUsedCredit() 
    {
        return usedCredit;
    }

    public void setSettlementCycle(Long settlementCycle) 
    {
        this.settlementCycle = settlementCycle;
    }

    public Long getSettlementCycle() 
    {
        return settlementCycle;
    }

    public void setLastSettlementTime(Date lastSettlementTime) 
    {
        this.lastSettlementTime = lastSettlementTime;
    }

    public Date getLastSettlementTime() 
    {
        return lastSettlementTime;
    }

    public void setStatus(String status) 
    {
        this.status = status;
    }

    public String getStatus() 
    {
        return status;
    }

    @Override
    public String toString() {
        return new ToStringBuilder(this,ToStringStyle.MULTI_LINE_STYLE)
            .append("deptExtId", getDeptExtId())
            .append("deptId", getDeptId())
            .append("proxyUserId", getProxyUserId())
            .append("accountBalance", getAccountBalance())
            .append("frozenBalance", getFrozenBalance())
            .append("paymentPassword", getPaymentPassword())
            .append("paymentStatus", getPaymentStatus())
            .append("creditLimit", getCreditLimit())
            .append("usedCredit", getUsedCredit())
            .append("settlementCycle", getSettlementCycle())
            .append("lastSettlementTime", getLastSettlementTime())
            .append("status", getStatus())
            .append("createBy", getCreateBy())
            .append("createTime", getCreateTime())
            .append("updateBy", getUpdateBy())
            .append("updateTime", getUpdateTime())
            .append("remark", getRemark())
            .toString();
    }
}
